package com.cs.club.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cs.club.infra.basic.entity.ClubAssets;
import com.cs.club.infra.basic.mapper.ClubActivitiesMapper;
import com.cs.club.infra.basic.entity.ClubActivities;
import com.cs.club.infra.basic.service.ClubActivitiesService;
import org.springframework.stereotype.Service;

/**
 * 活动表(ClubActivities)表服务实现类
 *
 * @author makejava
 * @since 2024-09-24 19:33:05
 */
@Service("clubActivitiesService")
public class ClubActivitiesServiceImpl extends ServiceImpl<ClubActivitiesMapper, ClubActivities> implements ClubActivitiesService {

    @Override
    public Boolean addClubActivities(ClubActivities clubActivities) {
        return save(clubActivities);
    }

    @Override
    public Boolean deleteClubActivities(ClubActivities clubActivities) {
        clubActivities.setIsDelete(1);
        return updateById(clubActivities);
    }

    @Override
    public Boolean updateClubActivities(ClubActivities clubActivities) {
        return updateById(clubActivities);
    }
}

